<?php

declare(strict_types=1);

namespace App\Entities;

class CleanerApplyEntity extends ABaseEntity
{
    public function __construct(CleanerApplyModel $model = null)
    {
        if ($model) {
            $this->model = $model;
        } else {
            $this->model = new CleanerApplyModel();
        }
    }

    public function getId(): int
    {
        return $this->model->id;
    }

    public function getRealName(): string
    {
        return (string) $this->model->realname;
    }

    public function setRealName(string $realName): void
    {
        $this->model->realname = $realName;
    }

    //phone
    public function getPhone(): string
    {
        return $this->model->phone;
    }

    public function setPhone(string $phone): void
    {
        $this->model->phone = $phone;
    }

    //gender
    public function getGender(): int
    {
        return $this->model->gender;
    }

    public function setGender(int $gender): void
    {
        $this->model->gender = $gender;
    }

    //city_id
    public function getCityId(): int
    {
        return $this->model->city_id;
    }

    public function setCityId(int $cityId): void
    {
        $this->model->city_id = $cityId;
    }

    //status
    public function getStatus(): int
    {
        return $this->model->status;
    }

    public function setStatus(int $status): void
    {
        $this->model->status = $status;
    }

    //birthday
    public function getBirthday(): string
    {
        return $this->model->birthday;
    }

    public function setBirthday(string $birthday): void
    {
        $this->model->birthday = $birthday;
    }

    //create_time
    public function getCreateTime(): int
    {
        return $this->model->create_time;
    }

    public function setCreateTime(int $createTime): void
    {
        $this->model->create_time = $createTime;
    }
}
